package cn.lanjh.system.feign;

import cn.lanjh.common.constants.ServiceNameConstants;
import cn.lanjh.system.feign.factory.RemoteSysConfigFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * oss Feign服务层
 * 
 * @author lanjh
 * @date 2019-05-20
 */
@FeignClient(name = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteSysConfigFallbackFactory.class)
public interface RemoteSysConfigService
{
    @GetMapping("selectConfigByKey/{configKey}")
    public String selectConfigByKey(@PathVariable("configKey") String configKey);

}
